import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../components/Home.vue'
import NoPermission from '../views/403.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/403'
     },
  {
    path: '/',
    name: 'home',
    component: Home,
    meta: { title: '首页面' },
    children: [
      {
        path: '/403',
        component: NoPermission,
        meta: {title: '没有权限'}
    },
    ]
  },
 
]

const router = new VueRouter({
  routes
})

export default router
